package com.gome.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel(value="接口返回信息",description ="CRUD返回前台的信息")
public class Result {
    //状态码
    @ApiModelProperty(value = "状态码:{200:成功，400:错误,401:用户未登录}")
    private String code;
    //消息
    @ApiModelProperty(value = "返回前台的操作信息")
    private String msg;
    //主体数据
    @ApiModelProperty(value = "返回前台的数据")
    private Object data;

    public Result(String code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }


}
